# API routes aggregation
from fastapi import APIRouter
from ..v1 import (
    auth, users, chat, novels, avatars, ai, websocket, upload, audio
)


api_router = APIRouter()

# 健康检查端点
@api_router.get("/health")
async def health_check():
    return {
        "status": "healthy",
        "message": "Echo Role 后端服务运行正常",
        "version": "1.0.0"
    }

# 用户认证相关路由
api_router.include_router(auth.router, prefix="/auth", tags=["authentication"])

# 用户管理相关路由
api_router.include_router(users.router, prefix="/users", tags=["users"])

# 聊天功能相关路由
api_router.include_router(chat.router, prefix="/chat", tags=["chat"])

# 小说管理相关路由
api_router.include_router(novels.router, prefix="/novels", tags=["novels"])

# 数字人管理相关路由
api_router.include_router(avatars.router, prefix="/avatars", tags=["avatars"])

# AI服务相关路由
api_router.include_router(ai.router, prefix="/ai", tags=["ai"])

# WebSocket相关路由
api_router.include_router(websocket.router, prefix="/ws", tags=["websocket"])

# 文件上传相关路由
api_router.include_router(upload.router, prefix="/files", tags=["upload"])

# 音频服务相关路由
api_router.include_router(audio.router, prefix="/audio", tags=["audio"])

# 导出路由器
__all__ = ["api_router"] 